// 二次封装的axios函数。（近似看做就是axios）
import { request } from "@/utils/http";
import { GetHospitalListParams, GetHospitalListResponse, CityList } from "./model/hospitalListTypes";
export const reqGetHospitalList = ({ page, limit, ...params }: GetHospitalListParams) => {
  return request.get<any, GetHospitalListResponse>(`/admin/hosp/hospital/${page}/${limit}`, {
    params,
  });
};
// 获取省/市/区列表数据
export const reqGetCityList = (parentId: number) => {
  return request.get<any, CityList>(`/admin/cmn/dict/findByParentId/${parentId}`);
};
